

package bo;

import dto.DTO_HoaDon;
import java.sql.SQLException;
import java.util.ArrayList;
import mapper.MAP_HoaDon;

public class BUS_HoaDon {

    public boolean themHD(DTO_HoaDon hoadon)
    {
        MAP_HoaDon mapHD = new MAP_HoaDon();
        return mapHD.themHD(hoadon);
    }
    public int layMaHD(int MaKH) throws SQLException
    {
        MAP_HoaDon mapHD = new MAP_HoaDon();
        return mapHD.LayMaHD(MaKH);
    }
    public ArrayList<DTO_HoaDon> LoadDSHD(int TrangThai)
    {
        MAP_HoaDon mapHD = new MAP_HoaDon();
        return mapHD.LoadDSHD(TrangThai);
    }
    public boolean CapNhatHD(DTO_HoaDon hd)
    {
        MAP_HoaDon mapHD = new MAP_HoaDon();
        return mapHD.CapNhatHD(hd);
    }
    public boolean XoaHD(int MaHD)
    {
        MAP_HoaDon mapHD = new MAP_HoaDon();
        return mapHD.XoaHD(MaHD);
    }
}
